
require('../less/advert.less')


/* require("../less/commcss/animate..css") */

/* 窗口加载事件 */
window.addEventListener("load", function () {
    /* 获取5s */
    const span = document.querySelector(".span")
    /* 定义初始值 */
    let chu = 5
    /* 启动计时器 */
    window.setInterval(function () {
        /* 进来就被干掉 */
        chu--;
        span.textContent = chu + "s"
        /* 判断 */
        if (chu < 1) {
            /* 小于1时跳转 */
            location.href = "../register.html"
        }
    }, 1000)

    /* 点击跳转回到其他页面*/
    const skip = document.querySelector(".skip")
    skip.addEventListener('click', function () {
        /* console.log(1); */
        location.href = './register.html'
    })
}


)
